package business;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Temporal;

    /**
     * Initialize the object. This must be called prior to any database-related methods.
     * @param driver The database driver instance.
     */
@Entity
public class ObatSubject implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private int subjectId;
    private String text;
    private String i18nText;

    @ManyToOne
    private User user;

    private String obat;

    @Temporal(javax.persistence.TemporalType.DATE)
    private Date orderDate;


    /**
     * @return the subjectId
     */
    public int getSubjectId() {
        return subjectId;
    }

    /**
     * @param subjectId the subjectId to set
     */
    public void setSubjectId(int subjectId) {
        this.subjectId = subjectId;
    }

    /**
     * @return the text
     */
    public String getText() {
        return text;
    }

    /**
     * @param text the text to set
     */
    public void setText(String text) {
        this.text = text;
    }

    /**
     * @return the i18nText
     */
    public String getI18nText() {
        return i18nText;
    }

    /**
     * @param i18nText the i18nText to set
     */
    public void setI18nText(String i18nText) {
        this.i18nText = i18nText;
    }
}
